package com.zw.myservice;


import android.app.Application;
import com.zw.myservice.service.iml.TraceServiceImpl;
import com.zw.myservice.utils.DaemonEnv;
import com.zw.myservice.utils.WeChatUtils;


public class App extends Application {
    public static App app;
    public static WeChatUtils weChatUtils;
    public static App getInstance(){
        return app;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        app=this;
        weChatUtils=new WeChatUtils(this);
        //需要在 Application 的 onCreate() 中调用一次 DaemonEnv.initialize()
        DaemonEnv.initialize(this, TraceServiceImpl.class, DaemonEnv.DEFAULT_WAKE_UP_INTERVAL);
        TraceServiceImpl.sShouldStopService = false;
        DaemonEnv.startServiceMayBind(TraceServiceImpl.class);
    }


}
